import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import './components/index'
import store from './store/index.js'
import './components/toast/index.js';
import router from './router/index.js';
console.log("🚀 ~ file: main.js:8 ~ store:", store)


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  store,
  router,
  ...App
})
import vConsole from '@/utils/vconsole.js'
Vue.use(vConsole) // 使用vconsole

app.$mount()
// #endif

// #ifdef VUE3
import {
  createSSRApp
} from 'vue'
export function createApp () {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif